<!doctype html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{$rs.title}</title>
<style type='text/css'>
		.float-left{float: left;}
        #content_holder{float: left; }
        .example{float: left;width: 100%;padding-top:10px;padding-bottom:10px;text-align: center; margin-top:5px;}
        .example p{text-indent: 2em;}
        .example h3{text-align: center;}
        .example .operator{width: 100%;float: center ;padding-top:10px;padding-bottom:10px;text-align: center;margin-top:5px;}
        .example-1{background: Black;color: Black;}
        .example-1 img{display:inline-block;width: 300px;float: left;margin-left: 10px;margin-right: 15px;padding: 8px;}
		.example-2{color: Black;}
		a {color:black;text-decoration:underline;}

    </style>
<!--[if lt IE 9]>
        <script src="http://www.jq22.com/demo/jQueryPrint201703012350/js/vendor/html5-3.6-respond-1.1.0.min.js"></script>
    <![endif]-->

<style type="text/css" media="print">
.noprint{display : none }
</style>

<body>

<div id="ele2" class="example example-2 operator">

<!--startprint1-->
<p align="center" ><h2>某某XX公司发文审批表(有文号)</h2><strong> </strong></p>


<div align="center" >

<table width="800" border="1" cellspacing="0" >
  <tr >
    <td width="132" height="47" valign="center" >
        <p align="center" ><strong>标&nbsp;&nbsp;&nbsp;&nbsp;题</strong></p></td>
    <td valign="center" colspan="4" > {$rs.title}</td>
  </tr>
  <tr >
    <td width="132" height="47" valign="center" ><p align="center" ><strong>拟 稿 人</strong> </p></td>
    <td valign="center" colspan="2" >&nbsp;{$rs.docauthor}  </td>
    <td width="133" valign="center" ><p align="center" ><strong>拟稿部门</strong> </p></td>
    <td width="367" valign="center" >&nbsp;{$rs.docunit} </td>
  </tr>
  <tr >
    <td width="132" height="47" valign="center" ><p align="center" ><strong>拟稿日期</strong><strong> </strong></p></td>
    <td valign="center" colspan="2" >&nbsp;{$rs.docdate|format_datetime='Y-m-d H:i'}  </td>
    <td width="133" valign="center" ><p align="center" ><strong>主送单位</strong><strong> </strong></p></td>
    <td width="367" valign="center" >&nbsp;{$rs.tounit1}  </td>
  </tr>
  <tr >
    <td width="132" height="47" valign="center" ><p align="center" ><strong>抄送单位</strong><strong> </strong></p></td>
    <td valign="center" colspan="2" >&nbsp;{$rs.tounit2}</td>
    <td width="133" valign="center" ><p align="center" ><strong>紧急程度</strong><strong> </strong></p></td>
    <td width="367" valign="center" >&nbsp;{$rs.jinji} </td>
  </tr>
  <tr >
    <td height="35" colspan="5" valign="center" ><p align="center" ><strong>&#9;</strong><strong>审</strong><strong> </strong><strong>     核</strong><strong> </strong><strong>&#9;</strong><strong> </strong></p></td>
  </tr>
  <tr >
    <td height="35" colspan="2" valign="center" ><p ><strong>审核部门</strong><strong> </strong></p></td>
    <td valign="center" colspan="3" ><p align="center" ><strong>审核意见（加签名）</strong><strong> </strong></p></td>
  </tr>
  <tr >
    <td height="120" colspan="2" valign="center" ><p ><strong>科室</strong><strong>/</strong><strong>项目负责人审核</strong><strong> </strong></p></td>
    <td valign="center" colspan="3" >
	  {foreach $flow_list as $key=>$vo}
		  {if $vo['types'] == 'keshifuzeren'}
		  &nbsp; {$vo.username}:{$vo.info}&nbsp;  ({$vo.addtime|format_datetime='Y-m-d H:i'|default=""})<br>
		  {/if}
	  {/foreach}
	</td>
  </tr>
  <tr >
    <td height="120" colspan="2" valign="center" ><p ><strong>办公室收发文员审核<br />
            拟稿人核对 </strong></p></td>
    <td valign="center" colspan="3" >
	  {foreach $flow_list as $key=>$vo}
		  {if $vo['types'] == 'shouwenwenyuan'}
		  &nbsp; {$vo.username}:{$vo.info}&nbsp;  ({$vo.addtime|format_datetime='Y-m-d H:i'|default=""})<br>
		  {/if}
	  {/foreach}	  
	  </td>
  </tr>
  <tr >
    <td height="120" colspan="2" valign="center" ><p ><strong>  办公室主任复核</strong><strong> </strong></p></td>
    <td valign="center" colspan="3" >
	  {foreach $flow_list as $key=>$vo}
		  {if $vo['types'] == 'bangongshizhuren'}
		  &nbsp; {$vo.username}:{$vo.info}&nbsp;  ({$vo.addtime|format_datetime='Y-m-d H:i'|default=""})<br>
		  {/if}
	  {/foreach}	
	
	</td>
  </tr>
  <tr >
    <td height="120" colspan="2" valign="center" ><p ><strong>分管领导审核</strong><strong> </strong></p></td>
    <td valign="center" colspan="3" >
	
	  {foreach $flow_list as $key=>$vo}
		  {if $vo['types'] == 'fenguanlingdao'}
		  &nbsp; {$vo.username}:{$vo.info}&nbsp;  ({$vo.addtime|format_datetime='Y-m-d H:i'|default=""})<br>
		  {/if}
	  {/foreach}	
	
	
	</td>
  </tr>
  <tr >
    <td height="120" colspan="2" valign="center" ><p ><strong>主要领导签发意见</strong><strong> </strong></p></td>
    <td valign="center" colspan="3" >
	  {foreach $flow_list as $key=>$vo}
		  {if $vo['types'] == 'zhuyaolingdao'}
		  &nbsp; {$vo.username}:{$vo.info}&nbsp;  ({$vo.addtime|format_datetime='Y-m-d H:i'|default=""})<br>
		  {/if}
	  {/foreach}	
	</td>
  </tr>
  
  <tr >
    <td height="120" colspan="2" valign="center" ><p ><strong>文件附件</strong><strong> </strong></p></td>
    <td valign="center" colspan="3" >
	  {foreach $file_list as $key=>$vo}

		   &nbsp; <a href="{$vo.fileurl}">{$vo.original_name}</a>&nbsp;&nbsp;({$vo.filesize|format_size})<br>

	  {/foreach}	
	</td>
  </tr>
  
</table>

</div>




<p align="center">打印人：{:session('admin_user.nickname')} &nbsp; &nbsp; &nbsp; &nbsp;  打印日期：{:date('Y年m月d日',time());}  </p>

<!--endprint1-->

<div class="operator">
<button class="print-link no-print">
打印页面
</button>
</div>
</div>



<script src="__ROOT__/static/jquery-1.10.2.js"></script>
<script src="__ROOT__/static/jQuery.print.js"></script>
<script type='text/javascript'>
        //<![CDATA[
        $(function() {
            $("#ele2").find('.print-link').on('click', function() {
                //Print ele2 with default options
                $.print("#ele2");
            });
            $("#ele4").find('button').on('click', function() {
                //Print ele4 with custom options
                $("#ele4").print({
                    //Use Global styles
                    globalStyles : false,
                    //Add link with attrbute media=print
                    mediaPrint : false,
                    //Custom stylesheet
                    stylesheet : "http://fonts.useso.com/css?family=Inconsolata",
                    //Print in a hidden iframe
                    iframe : false,
                    //Don't print this
                    noPrintSelector : ".avoid-this",
                    //Add this at top
                    prepend : "Hello World!!!<br/>",
                    //Add this on bottom
                    append : "<br/>Buh Bye!"
                });
            });
            // Fork https://github.com/sathvikp/jQuery.print for the full list of options
        });
        //]]>
    </script>
</body>
</html>
